package com.sgb.kjwl.model.entity.user;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class DictEntity implements Serializable,  IPickerViewData {
//    @SerializedName("id")
//    private String id;
    @SerializedName("name")
    private String name;
    @SerializedName(value = "id",alternate = "no")
    private String no;

//    public String getId() {
//        return id;
//    }
//
//    public void setId(String id) {
//        this.id = id;
//    }

    public DictEntity(){

    }

    public DictEntity(String no,String name){
        this.no = no;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
}
